package request

type AdIncomeReq struct {
	DeviceSn   string `json:"deviceSn" form:"deviceSn"`
	PlaceId    int    `json:"placeId" form:"placeId"`
	OpenId     string `json:"openid" form:"openid"`
	Unionid    string `json:"unionid" form:"unionid"`
	AdType     string `json:"adType" form:"adType"`
	Appid      string `json:"appid" form:"appid"`
	IncomeType string `json:"incomeType" form:"incomeType"`
}

type GetNearbyWifiListReq struct {
	WifiNameList []string `json:"wifiNameList" form:"wifiNameList"`
	Longitude    float64  `json:"longitude" form:"longitude"`
	Latitude     float64  `json:"latitude" form:"latitude"`
}
type GetNearbyWifiListRes struct {
	Id           int     `gorm:"id" json:"id"`
	Distance     float64 `gorm:"distance" json:"distance"` // 距离 单位：KM
	WifiName     string  `gorm:"wifi_name" json:"wifiName"`
	WifiPassword string  `gorm:"wifi_password" json:"wifiPassword"`
}

type CreateWifiReq struct {
	PlaceId      int    `json:"placeId"`
	DeviceSn     string `json:"deviceSn"`
	WifiName     string `json:"wifiName"`
	WifiPassword string `json:"wifiPassword"`
}

type GetUserWifiListReq struct {
	BaseListReq
	ParentId int   `json:"parentId"`
	UserId   int   `json:"userId"`
	IsAdmin  uint8 `json:"isAdmin"`
	WifiName  string `json:"wifiName" form:"wifiName"`
}
type GetUserWifiListRes struct {
	Id           int    `gorm:"id" json:"id"`
	PlaceId      int    `gorm:"place_id" json:"placeId"`
	WifiPassword string `gorm:"wifi_password" json:"wifiPassword"`
	PlaceName    string `gorm:"place_name" json:"placeName"`
	WifiName     string `gorm:"wifi_name" json:"wifiName"`
	DeviceSn     string `gorm:"device_sn" json:"deviceSn"`
	UseCount     int    `gorm:"use_count" json:"useCount"`
	AllUseCount  int    `gorm:"all_use_count" json:"allUseCount"`
}

type CreateInviteCodeReq struct {
	UserProportion  int   `json:"userProportion"`
	BelowProportion int   `json:"proportion"`
	IsAdmin         uint8 `json:"isAdmin"`
	UserId          int   `json:"userId"`
}

type CreateInviteUserRegisterReq struct {
	UserName string `json:"userName"`
	Phone    string `json:"phone"`
	InviteId int    `json:"inviteId"`
}


type GetWifiPlaceListReq struct {
	BaseListReq
	LoginUserId int `json:"loginUserId" form:"loginUserId"`
	IsAdmin     uint8 `json:"isAdmin" form:"isAdmin"`    // 0个人-直营  3商家-下级
	PlaceId     int    `json:"placeId" form:"placeId"`
	PlaceName   string `json:"placeName" form:"placeName"`
	ParentId    int
}
